package o;

import android.content.Context;
import com.huawei.appgallery.foundation.card.base.normal.bean.NormalCardBean;
import com.huawei.appmarket.service.installdepend.bean.GetDetailByIdResBean$DetailInfoBean;
import java.util.ArrayList;
import java.util.List;

public class eaq {
    private static final Object ˎ = new Object();
    private static eaq ˏ;

    public static eaq ˊ() {
        eaq o_eaq;
        synchronized (ˎ) {
            if (ˏ == null) {
                ˏ = new eaq();
            }
            o_eaq = ˏ;
        }
        return o_eaq;
    }

    public cia ˎ(Context context) {
        return che.ˎ().ˎ(context, ewm$m.ॱ);
    }

    public void ˎ(cia o_cia, GetDetailByIdResBean$DetailInfoBean getDetailByIdResBean$DetailInfoBean, long j) {
        List arrayList = new ArrayList();
        int parseInt = Integer.parseInt(getDetailByIdResBean$DetailInfoBean.ˏॱ());
        String ʻ = getDetailByIdResBean$DetailInfoBean.ʻ();
        NormalCardBean normalCardBean = new NormalCardBean();
        normalCardBean.ˋ(getDetailByIdResBean$DetailInfoBean.ˊॱ());
        normalCardBean.ˋᐝ(getDetailByIdResBean$DetailInfoBean.ᐝ());
        normalCardBean.ˊ(getDetailByIdResBean$DetailInfoBean.ॱˎ());
        normalCardBean.ʿ(getDetailByIdResBean$DetailInfoBean.ॱˋ());
        String ʽ = getDetailByIdResBean$DetailInfoBean.ʽ();
        if (j > ((long) parseInt)) {
            normalCardBean.ˋ(false);
        } else {
            normalCardBean.ˋ(true);
        }
        normalCardBean.ˏॱ(getDetailByIdResBean$DetailInfoBean.ॱॱ());
        normalCardBean.ˋॱ(getDetailByIdResBean$DetailInfoBean.ˋॱ());
        normalCardBean.ˉ(getDetailByIdResBean$DetailInfoBean.ॱˊ());
        normalCardBean.ˏˎ(ʻ);
        normalCardBean.ˎ(getDetailByIdResBean$DetailInfoBean.ˎ());
        normalCardBean.ॱ(getDetailByIdResBean$DetailInfoBean.ॱᐝ());
        normalCardBean.ͺ(getDetailByIdResBean$DetailInfoBean.ʻॱ());
        try {
            normalCardBean.ॱ(Long.parseLong(ʽ));
        } catch (NumberFormatException e) {
            Logger.e("InstallDependManager", "error size: " + ʽ);
        }
        normalCardBean.ॱ(drj.ॱ(ʻ));
        arrayList.add(normalCardBean);
        chz ॱ = o_cia.ॱ(1);
        if (ॱ != null) {
            ॱ.ˎ(arrayList);
        }
        o_cia.ͺ();
    }
}
